Download

public interface Download implements Observable<T>

A download activity.

Functions

Link copied to clipboard
public abstract void cancel()
Cancels this download.
Link copied to clipboard
public abstract boolean isPaused()
Indicates whether this download is paused.
Link copied to clipboard
public abstract Subscription on<E extends T>(Class<E> eventClass, Observer<E> observer)
Subscribes the given event observer to receive the events of the given eventClass.
Link copied to clipboard
public abstract void pause()
Pauses this download.
Link copied to clipboard
public abstract void resume()
Resumes this download.
Link copied to clipboard
public abstract DownloadState state()
Returns the download state.
Link copied to clipboard
public final Subscription subscribe<E extends Event>(Observer<E> observer)
public final Subscription subscribe<E extends Event>(Observer<E> observer)

Subscribes the given observer to receive events of type E from this Observable.

Link copied to clipboard
public abstract DownloadTarget target()
Returns the download target.